package com.bsj.travel.def.mqtt.message;

import lombok.AllArgsConstructor;
import lombok.Builder;
import lombok.Data;
import lombok.NoArgsConstructor;

/**
 * @author yinhao
 * @version 1.0
 * @description 服务端下行->设备消息
 * @date 2023/11/28
 */
@Data
@Builder
@AllArgsConstructor
@NoArgsConstructor
public class SendMqttMsg {

    /**
     * 采用本平台MQTT三元组连接的username.格式 deviceName&productKey
     */
    private String username;
    /**
     * MQTT连接ID
     */
    private String clientId;
    /**
     * 推送给设备的主题
     */
    private String topic;
    /**
     * 数据体，透传
     */
    private String payload;
    /**
     * MQTT qos
     */
    private Integer qos;
    /**
     * 该消息服务端推送的时间
     */
    private Long timestamp;
}
